Tables [dbo].[OrderSuperProductAttributeLookup]
Properties
PropertyValue
Row Count1
Created10:31:30 AM Tuesday, March 02, 2010
Last Modified11:40:05 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_OrderSuperProductAttributeLookup: OrderProductID\OrderSuperProductAttributeIDForeign Keys FK_OrderSuperProductAttributeLookup_OrderProduct: [dbo].[OrderProduct].OrderProductIDOrderProductIDint4
No
Cluster Primary Key PK_OrderSuperProductAttributeLookup: OrderProductID\OrderSuperProductAttributeIDForeign Keys FK_OrderSuperProductAttributeLookup_OrderSuperProductAttribute: [dbo].[OrderSuperProductAttribute].OrderSuperProductAttributeIDOrderSuperProductAttributeIDint4
No
SortOrderint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OrderSuperProductAttributeLookup: OrderProductID\OrderSuperProductAttributeIDPK_OrderSuperProductAttributeLookupOrderProductID, OrderSuperProductAttributeID
Yes
Foreign Keys Foreign Keys
NameUpdateDeleteColumns
FK_OrderSuperProductAttributeLookup_OrderProductCascadeCascadeOrderProductID->[dbo].[OrderProduct].[OrderProductID]
FK_OrderSuperProductAttributeLookup_OrderSuperProductAttributeOrderSuperProductAttributeID->[dbo].[OrderSuperProductAttribute].[OrderSuperProductAttributeID]
SQL Script
CREATE TABLE [dbo].[OrderSuperProductAttributeLookup]
(
[OrderProductID] [int] NOT NULL,
[OrderSuperProductAttributeID] [int] NOT NULL,
[SortOrder] [int] NOT NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[OrderSuperProductAttributeLookup] ADD CONSTRAINT [PK_OrderSuperProductAttributeLookup] PRIMARY KEY CLUSTERED ([OrderProductID], [OrderSuperProductAttributeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderSuperProductAttributeLookup] ADD CONSTRAINT [FK_OrderSuperProductAttributeLookup_OrderProduct] FOREIGN KEY ([OrderProductID]) REFERENCES [dbo].[OrderProduct] ([OrderProductID]) ON DELETE CASCADE ON UPDATE CASCADE
GO
ALTER TABLE [dbo].[OrderSuperProductAttributeLookup] ADD CONSTRAINT [FK_OrderSuperProductAttributeLookup_OrderSuperProductAttribute] FOREIGN KEY ([OrderSuperProductAttributeID]) REFERENCES [dbo].[OrderSuperProductAttribute] ([OrderSuperProductAttributeID])
GO
Uses
Used By